package cn.edu.sgu.www.mhxysy.entity.partner;

import cn.edu.sgu.www.mhxysy.consts.IdentifierPrefixes;
import cn.edu.sgu.www.mhxysy.util.StringUtils;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;

/**
 * 助战技能
 * @author 沐雨橙风ιε
 * @version 1.0
 */
@Data
@ApiModel
@TableName("partner_skill")
public class PartnerSkill implements Serializable {
    private static final long serialVersionUID = 18L;

    @TableId(value = "id", type = IdType.AUTO)
    @ApiModelProperty(value = "ID")
    private String id;

    /**
     * 技能类型
     * 0-基础技能；1-特殊技能
     */
    @ApiModelProperty(value = "技能类型")
    private Integer type;

    /**
     * 技能ID
     */
    @ApiModelProperty(value = "技能ID")
    private Integer skillId;

    /**
     * 助战ID
     */
    @ApiModelProperty(value = "助战ID")
    private Integer partnerId;

    public String uuid() {
        return IdentifierPrefixes.PREFIX_ZZJN + StringUtils.uuid();
    }

}